import request from "@/utils/request.js";
//  退款
export function tuikuan(id,data){
	return request.post('myorder/refund/'+id, data)
}
// 不退款
export function notuikuan(id,data){
	return request.post('myorder/noRefund/'+id, data)
}
// 获取我的卖出订单
export function getMyOrder(){ 
	return request.get('myorder/getMyOrder')
}
// 根据订单id获取订单
export function getMyOrders(real_name){ 
	return request.get('myorder/getMyOrder?real_name='+real_name)
}
// 修改配送信息
export function editShippingInformation(id,data){
	return request.post('myorder/editShippingInformation/'+id, data)
}
// 获取快递信息
export function express(){
	return request.get('myorder/express')
}
// 获取订单详情
export function getDetails(id){
	return request.get('myorder/getDetails/'+id)
}
// 修改订单信息
export function editInfo(id, data){
	return request.post('myorder/editInfo/'+id, data)
}
// 订单修改为已支付
export function payOffline(id){
	return request.post('myorder/payOffline/'+id)
}
// 获取订单操作日志
export function getLog(id){
	return request.get('myorder/getLog/' + id)
}
// 订单备注
export function remark(id,remark){
	return request.post('myorder/remark/'+ id,{remark})
}
// 删除订单
export function delOeder(id){
	return request.post('myorder/del/'+id)
}
// 退款
export function refund(id,data){
	return request.post('myorder/refund/'+id,data)
}
// 不退款
export function noRefund(id, data){
	return request.post('myorder/noRefund/'+id,data)
}
// 发货
export function sendGoods(id, data){
	return request.post('myorder/sendGoods/'+id,data)
} 
// 获取所有订单接口
export function getAllChart(){
	return request.get('order/chart')
}